package com.itheima.Test;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;

public class Test002 {
    public static void main(String[] args) throws Exception {
        //创建字符输入流;
        BufferedReader  br  = new BufferedReader(new FileReader("Day22codes\\tianqi.xml"));
        //创建字符输出流;
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day22codes\\222.xml"));
        //创建一个buffer缓冲区
       char [] arr = new char[1024];
       int  i  ;
       while ((i=br.read(arr))!=-1){
           bw.write(arr);
       }
       br.close();
       bw.close();

    }
}
